# Maintainer: Krystian Chachuła <krystian@krystianch.com>
pkgname=plantuml
pkgver=1.2022.5
pkgrel=0
pkgdesc="Draw UML diagrams, using a simple and human readable text description"
url="https://plantuml.com/"
# no riscv64 because of apache-ant
# there's no more 32-bit bit
arch="noarch !x86 !armhf !armv7 !riscv64"
license="GPL-3.0-or-later"
depends="busybox java-common java-jre"
makedepends="apache-ant"
options="!check"  # no tests provided
source="https://downloads.sourceforge.net/plantuml/plantuml-$pkgver.tar.gz
	plantuml.run"

build() {
	ant dist
}

package() {
	install -Dm644 plantuml.jar \
		"$pkgdir/usr/share/java/plantuml.jar"
	install -Dm755 "$srcdir/plantuml.run" \
		"$pkgdir/usr/bin/plantuml"
}

sha512sums="
9e69cc4bf5bcc993ee93569ee9149c564592090890e6f9e88a5ca600b46cc55118ec58bc771f51db76e2a7301fda9f32b57e28056a949c5f9ad886b94460d970  plantuml-1.2022.5.tar.gz
cab64f1676cbd495752eda31f2ee4ab7d976253fe523a6db5b55fd9a165f1530da0d34196494ce38b0aaad6525f4f1e1e7fe60307ad220146b5a654d96c9d060  plantuml.run
"
